package com.tyk.bookstore.back.order.repository;


import com.tyk.bookstore.back.common.dal.mapper.IMapper;
import com.tyk.bookstore.back.order.model.dto.OrderCneeAddressDto;
import com.tyk.bookstore.back.order.model.dto.OrderExplicitDto;
import com.tyk.bookstore.back.order.model.entity.OrderExtraDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author tyk
 * @description 订单管理
 */
@Mapper
public interface OrderExtraRepository extends IMapper<OrderExtraDo> {

    /**
     * 查询订单收件地址信息
     */
    OrderCneeAddressDto selectOrderCneeAddressDtoByOrderId(@Param("orderId") Long orderId);

    /**
     * 查询订单额外信息
     */
    List<OrderExplicitDto> selectOrderExplicitDtoListByIdSet(Set<Long> orderIdSet);
}
